﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_deviceStatusInfoRecord")]
    public class DeviceStatusInfoRecordEntity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("RecordId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [Required]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 记录时间
        /// </summary>
        [Required]
        public DateTimeOffset RecordTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Required]
        public DateTimeOffset startTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Required]
        public DateTimeOffset endTime { get; set; }

        /// <summary>
        /// 一级故障
        /// </summary>
        [Required]
        public string Reason_1 { get; set; }

        /// <summary>
        /// 二级故障
        /// </summary>
        public string Reason_2 { get; set; }

        /// <summary>
        /// 三级故障
        /// </summary>
        public string Reason_3 { get; set; }

        /// <summary>
        /// 四级故障
        /// </summary>
        public string Reason_4 { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Des { get; set; }

        /// <summary>
        /// 记录人
        /// </summary>
        [Required]
        public string Author { get; set; }
    }
}
